#!/bin/bash
echo "pre rm"

## stop gaussdb
echo "Kill database process"
pid=$(ps -ef | grep /var/lib/opengauss/data | grep gaussdb | grep -v grep | awk '{print $2}')
if [ "$pid" != "" ]; then
    kill -9 $pid
fi